home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 65
/
065.d81
/
text printer
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
3KB
|
100 lines
5 poke53281,0:poke53280,0:print"[147][159]"
10 poke55,.:poke56,64:clr
12 sys57812"dirtovar.o",8,0:poke780,0:poke781,0:poke782,141:sys65493
16 sys57812"tp.disk.o",8,0:poke780,0:poke781,0:poke782,192:sys65493
18 sys57812"tp.print1.o",8,0:poke780,0:poke781,0:poke782,200:sys65493
20 sys57812"tp.print2.o",8,0:poke780,0:poke781,0:poke782,204:sys65493
105 rem setup stuff...
106 :
110 q$=chr$(34):c=54272
115 tp$="[147][150] [212] [197] [216] [212] [208] [210] [201] [206] [212] [197] [210] 1 9 9 0"
117 pr$="hold down [193] to pause printing "
118 ct$="([195])ontinue printing ([209])uit "
120 dim ty$(144),na$(144),le$(144),td$(23),pc%(23)
130 gosub1000:ifqtthenprinttp$:goto2000
140 printtp$:print"[159] [201]nsert the disk with the "q$"t."q$" [159]files"
145 printtab(11)"and press [211][208][193][195][197][154]."
150 geta$:ifa$<>" "then150
160 printtp$:print"[159][210]eading all "q$"prg"q$" [159]files with "q$"t."q$" [159]names."
180 sys36096:i=1:j=1
190 printtp$
200 ifna$(i)=""then225
210 ifleft$(na$(i),2)="t."thentd$(j)=na$(i):j=j+1
220 i=i+1:goto200
225 ifj=1thenprint"[159] [212]here are no "q$"t."q$" [159]files on this disk.":goto2000
230 print"[158] [176][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][174][145]"
231 printtab(20-(len(na$(0))/2)-1)"[179][129]"na$(0)"[158][171]"
232 fori=1toj-1:print" [158][221]"tab(13)"[154]"td$(i)tab(36)"[158][221]":next
234 print" [173][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][189]"
240 k=1
245 poke214,22:print:print"[195][210][211][210] [159]keys select [210][197][212][213][210][206] [159]toggle [193] [159]all"
247 print" [198]1 [159]print the highlighted files"
250 poke214,k+1:print:printtab(10)"[153][192]>[145]":poke198,0
260 geta$:ifa$=""then260
261 printtab(10)" [145]"
262 ifa$="[145]"thenk=k-1:ifk<1thenk=j-1
264 ifa$=""thenk=k+1:ifk>j-1thenk=1
265 ifa$<>"[133]"then268
266 poke214,22:print:print" "
267 form=1989to2018:pokem,asc(mid$(pr$,m-1988,1)):pokem+c,7:next:goto300
268 ifa$<>"a"then270
269 print"":fori=1toj-1:printtab(13)""td$(i):pc%(i)=1:next:goto240
270 ifa$<>chr$(13)then250
272 ifpc%(k)thenpc%(k)=0:printtab(13)"[154]"td$(k):goto250
274 pc%(k)=1:printtab(13)""td$(k):goto250
300 fori=1toj:ifpc%(i)=0then380
305 poke214,i+1:print:print"[153][210]eading[145]"
310 sys 49155,16384,td$(i)
315 ea=(peek(781)+peek(782)*256):poke ea,.:pokeea+1,13:poke ea+2,13
320 open4,4,7:z=.:a$=""
321 ifpeek(16384+z)=13then323
322 a$=a$+chr$(peek(16384+z)):z=z+1:goto321
323 s=16384:ifleft$(a$,3)="^u:"thens=16384+len(a$)+1
325 print"[153][208]rinting[145]"
329 poke2,0
330 if(fl)then sys 52224,s:sp=59-peek(787)
340 iffl=0then sys 51200,s:sp=peek(787)+5
344 ifpeek(2)=0then360
345 sys65484
346 form=1989to2018:pokem,asc(mid$(ct$,m-1988,1)):pokem+c,7:next
347 geta$:ifa$<>"c"anda$<>"q"then347
348 ifa$="q"theni=j:next:print#4:close4:goto2000
349 form=1989to2018:pokem,asc(mid$(pr$,m-1988,1)):pokem+c,7:next
350 poke2,.
351 if(fl)thenpoke781,4:sys65481: sys52486:sp=59-peek(787)
352 iffl=0thenpoke781,4:sys65481: sys51318:sp=peek(787)+5
354 ifpeek(2)=1then346
360 for b=1 to sp:print#4:next:close4
370 poke214,i+1:print:print" "
380 nexti:goto2000
1000 poke53281,0:poke53280,0
1010 print"[147][159]"tp$
1030 print"[153] by [205]ike [205]aynard and [198]ender [212]ucker"
1040 print"[154] [212]his program shows you the names of"
1050 print" all of the "q$"t."q$" [154]files on a disk and"
1060 print" allows you to print out all of them or
1070 [153]" just the ones you want."
1092 [153]" (NULL)ake sure your printer is on-line"
1094 [153]" and the print head is set to the top"
1096 [153]" of a page."
1098 [153]" (NULL)hese are your options:"
1100 [153]" open((NULL)open)wo columns"
1110 [153]" open((NULL)open)ingle column in mid-page"
1120 [153]" open((NULL)open)eturn to (NULL)(NULL)atnstr$(NULL)(NULL)atn(NULL)"
1130 [153]" cont(NULL)ress (NULL)cont, (NULL) or (NULL)"
1140 [161]a$:[139]a$[179][177]"t"[175]a$[179][177]"s"[175]a$[179][177]"r"[167]1140
1145 [139]a$[178]"r"[167]qt[178]1:[142]
1150 fl[178]0:[139]a$[178]"t"[167]fl[178]1
1160 [142]
2000 [153]"load":[153][163]10)"cont(str$cont)o another disk"
2005 [153][163]10)"cont((NULL)cont)eturn to (NULL)(NULL)atnstr$(NULL)(NULL)atn(NULL)"
2010 [151]198,.
2020 [161]a$:[139]a$[179][177]"d"[175]a$[179][177]"r"[167]2020
2030 [139]a$[178]"d"[167][138]110
2040 [159]15,8,15,"r0:loadstar briefs=loadstar briefs":[132]15,er:[160]15
2050 [139]er[179][177]63[167][128]
2060 [153]"loadstopload"q$"loadstar briefs"q$",8"
2070 [153]"run"
2080 [151]631,13:[151]632,13:[151]198,2:[128]
10000 [159]15,8,15,"s0:text printer":[160]15:[148]"text printer",8:[128]